package com.jason.java.demo;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.jason.java.demo.annotation.AnnotationActivity;
import com.jason.java.demo.annotation.InjectView;
import com.jason.java.demo.proxy.DynamicProxyActivity;
import com.jason.java.demo.proxy.IAction;
import com.jason.java.demo.proxy.MyAction;
import com.jason.java.demo.socket.SocketClientActivity;
import com.jason.java.demo.spi.SPIActivity;

import java.lang.reflect.Proxy;

public class MainActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void openDynamicProxy(View view) {
        startActivity(new Intent(this, DynamicProxyActivity.class));
    }

    public void openAnnotation(View view) {
        startActivity(new Intent(this, AnnotationActivity.class));
    }

    public void openSPI(View view) {
        startActivity(new Intent(this, SPIActivity.class));
    }

    public void openSocket(View view) {
        startActivity(new Intent(this, SocketClientActivity.class));
    }
}